home *** CD-ROM | disk | FTP | other *** search
/ FM Towns: Free Software Collection 6 / FM Towns Free Software Collection 6.iso / ms_dos / gds / source / gds204.c < prev    next >
Encoding:
C/C++ Source or Header  |  1993-07-08  |  349 b   |  20 lines

  1.  
  2. /*
  3.  *
  4.  *    GDS204 : ポイント
  5.  *
  6.  */
  7.  
  8. #include <stdio.h>
  9. #include <dos.h>
  10.  
  11. unsigned char *GDS_append(unsigned char *wp,unsigned int size);
  12.  
  13. void GDS_point(unsigned char *wp,signed int x1,signed int y1) {
  14.  
  15.    wp=GDS_append(wp,6);
  16.    *(unsigned int *)(wp+0)=0x4000+3*32+4;
  17.    *(signed int *)(wp+2)=x1;
  18.    *(signed int *)(wp+4)=y1;
  19. }
  20.